package ihm.bean.administration.profils;

import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import metier.model.Profil;
import metier.service.AdministrationProfilsService;

@ManagedBean
@ViewScoped
public class AdministrationProfilsIndexController {

    @EJB
    private AdministrationProfilsService administrationProfilsService;
    private List<Profil> listeProfil;

    public AdministrationProfilsIndexController() {
    }

    @PostConstruct
    private void initialisation() {
        listeProfil = administrationProfilsService.lister();
    }

    public List<Profil> getListeProfil() {
        return listeProfil;
    }

    public void setListeProfil(List<Profil> listeProfil) {
        this.listeProfil = listeProfil;
    }

}
